Function Reference

_IELinkClickByIndex

Simulate a mouse click on a link by 0-based index (in source order).

#include <IE.au3>
_IELinkClickByIndex ( ByRef $o_object, $i_index [, $f_wait = 1] )

 

Parameters

$o_object Object variable of an InternetExplorer.Application, Window or Frame object
$i_index Optional: 0-based index of the link you wish to match
$f_wait Optional: specifies whether to wait for page to load before returning
0 = Return immediately, not waiting for page to load
1 = (Default) Wait for page load to complete before returning

 

Return Value

Success: Returns -1
Failure: Returns 0 and sets @ERROR
@Error: 0 ($_IEStatus_Success) = No Error
1 ($_IEStatus_GeneralError) = General Error
3 ($_IEStatus_InvalidDataType) = Invalid Data Type
4 ($_IEStatus_InvalidObjectType) = Invalid Object Type
6 ($_IEStatus_LoadWaitTimeout) = Load Wait Timeout
7 ($_IEStatus_NoMatch) = No Match
8 ($_IEStatus_AccessIsDenied) = Access Is Denied
@Extended: Contains invalid parameter number

 

Remarks

None.

 

Related

_IELinkClickByText

 

Example


; *******************************************************
; Example 1 - Open browser with basic example, click on the 3rd
;               link on the page (note: the first link is index 0)
; *******************************************************
;
#include <IE.au3>
$oIE = _IE_Example ("basic")
_IELinkClickByIndex ($oIE, 2)